<?php
session_start();
require_once ('../Admin/00_function.php');
require_once ('../Dataprovider/Dataconfig.php');
require ('../Dataprovider/Dataconnection.php');
function JO_JS_location( $URL = false ) {
    if( $URL )	exit( "<script> try { parent.location.replace ( '" . $URL .		"'						); } catch ( exception ) { location.replace( '" . $URL . "'							); } </script>" );
    else	exit( "<script> try { parent.location.replace ( '" . $_SERVER[ "HTTP_REFERER" ] . "'	); } catch ( exception ) { location.replace( '" . $_SERVER[ "HTTP_REFERER" ] . "'	); } </script>" );
} 
function JO_location( $URL = false ) { JO_JS_location( $URL ); }
function EndcodeStr($str){
        $str= str_replace("\\", htmlentities("\\",ENT_QUOTES,'utf-8'), str_replace("'", htmlentities("'",ENT_QUOTES,'utf-8'), $str));
        return $str;
        
        }

if(isset($_REQUEST["AUnit"])) include "../Controller/AUnit.php";
$controller=  isset($_REQUEST["controller"])?$_REQUEST["controller"]:"";
if($controller!="")include "../Controller/$controller".".php";

?>